home *** CD-ROM | disk | FTP | other *** search
Wrap
// detect browser var browser = new Object(); browser.version = parseInt(navigator.appVersion); browser.isNetscape = false; browser.isIE = false; if (navigator.appName.indexOf('Netscape') != -1) { browser.isNetscape = true; } else if (navigator.appName.indexOf('Microsoft') != -1) { browser.isIE = true; } // resize detect if(!window.saveInnerWidth) { window.onresize = resizeMe; window.saveInnerWidth = window.innerWidth; window.saveInnerHeight = window.innerHeight; } // end resize detect function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } function changeImages() { if (document.images && (preloadFlag == true)) { for (var i=0; i<changeImages.arguments.length; i+=2) { document[changeImages.arguments[i]].src = changeImages.arguments[i+1]; } } } var preloadFlag = false; function preloadImages() { // alert("preloading basic"); if (document.images) { butviewpdf_over = newImage('images/b/b_viewpdf_over.gif'); butviewpdf_down = newImage('images/b/b_viewpdf_down.gif'); butviewdetails_over = newImage('images/b/b_viewdetails_over.gif'); butviewdetails_down = newImage('images/b/b_viewdetails_down.gif'); butcontinue_over = newImage('images/b/b_continue_over.gif'); butcontinue_down = newImage('images/b/b_continue_down.gif'); help_over = newImage("images/n/images/help-over.gif"); about_over = newImage("images/n/images/about-over.gif"); main_over = newImage("images/n/images/main-over.gif"); logo_over = newImage("images/n/mwlogo_roll.gif"); nav_d1_contents_over = newImage("images/n/nav_d1_contents_over.gif"); nav_d1_contents_down = newImage("images/n/nav_d1_contents_down.gif"); artbitz_over = newImage("images/nb/images/artbitz-over.gif"); bigstockphoto_over = newImage("images/nb/images/bigstockphoto-over.gif"); imagescom_over = newImage("images/nb/images/imagescom-over.gif"); istockphoto_over = newImage("images/nb/images/istockphoto-over.gif"); shutterpoint_over = newImage("images/nb/images/shutterpoint-over.gif"); shutterstock_over = newImage("images/nb/images/shutterstock-over.gif"); readlicense_over = newImage("images/bmain/images/readlicense-over.jpg"); website_over = newImage("images/bmain/images/website-over.jpg"); viewgallery_over = newImage("images/bmain/images/viewgallery-over.jpg"); preloadFlag = true; } } function resizeMe() { if (saveInnerWidth < window.innerWidth || saveInnerWidth > window.innerWidth || saveInnerHeight > window.innerHeight || saveInnerHeight < window.innerHeight ) { window.history.go(0); } } function isNetscape() { if (browser.isNetscape) { return true; } else { return false; } } function moveFiletoDisk(thefile, thefilename) { var win = window.open("", "win", "width=300,height=250"); // a window object with (win.document) { open("text/html", "replace"); write("<HTML><HEAD><TITLE>Install" + thefilename + "</TITLE><META HTTP-EQUIV='Refresh' CONTENT='2;URL=" + thefile + "'></HEAD><BODY><div align=center>"); write("<h1>" + thefilename + "</h1><br> <br>"); write("<br> <br> <br><font face='arial, helvetica, geneva' size=1 color='#333333'>Samples may take a few minutes to load <br>over slow internet connections.<br> <br>Requires QuickTime</font></div></body></html>"); close(); } }